﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AutoMapper;
using Portal.Model;
using Portal.Repository.Entities;

namespace Portal.Repository.Bootstraper
{
	public class RepositoryAutoMapper : Profile
	{
		protected override void Configure()
		{
			CreateMap<IUser, User>()
				.ForMember(x => x.Id, opt => opt.Ignore());

			//CreateMap<User, IUser>()
			//	.ForMember(x => x.Id, opt => opt.Ignore());

			//CreateMap<IContactInfo, ContactInfo>()
			//	.ForMember(x => x.Id, opt => opt.Ignore());
		}
	}
}
